<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
    .select_a {
            color: #009688;
            padding: 2px;
            margin: 2px;
            border: #009688 1px dashed;
        }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
                <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" id="name" name="name" class="layui-input" lay-reqtext="请输入名称" placeholder="请输入名称" value="{$row['name']|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">ajax下拉框</label>
            <div class="layui-input-block">
                    <div class="layui-form-select" style="width: 200px">
                        <div class="layui-select-title">
                            <input type="text" data-name="name" class="layui-input aselect" placeholder="请输入ajax下拉框" data-url="/admin/ajax/ajaxselect" autocomplete="off" data-contentid="my_lselect" data-table="system_model" data-relationship="table">
                            <input name="my_lselect" type="hidden" value="">
                            <i class="layui-edge"></i>
                        </div>
                        <dl id="my_lselect" class="layui-anim layui-anim-upbit"><dd lay-value="" class="layui-select-tips" style="text-align: center"><i class="layui-icon layui-icon-loading layui-icon layui-anim layui-anim-rotate layui-anim-loop">请选择</i></dd></dl>
                    </div>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联动单选</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['my_rodie']['option'] as $key=>$vo}
                    <input name="my_rodie" value="{$vo.table}" type="radio" title="{$vo.name}">
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联动多选框</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['my_chkebog']['option'] as $key=>$vo}
                    <input name="my_chkebog[]" value="{$vo.id}" type="checkbox" title="{$vo.name}">
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联动下拉组</label>
            <div class="layui-input-block">
                <select name="lianselect" class="layui-select" lay-search>
                    <option value="">请选择</option>
                    {foreach $alldata['field']['lianselect']['option'] as $key=>$vo}
                    {if isset($vo['child'])&&count($vo['child'])}
                    <optgroup label="{$vo.title|raw}">
                    {foreach $vo['child'] as $k=>$v}
                    {if isset($row['lianselect'])&&$row['lianselect']==$v.id}
                    <option value="{$v.id}" selected>{$v.title|raw}</option>
                    {else}
                    <option value="{$v.id}">{$v.title|raw}</option>
                    {/if}
                    {/foreach}
                    {else}
                    {if isset($row['lianselect'])&&$row['lianselect']==$vo.id}
                    <option value="{$vo.id}" selected>{$vo.title|raw}</option>
                    {else}
                    <option value="{$vo.id}">{$vo.title|raw}</option>
                    {/if}
                    {/if}
                    {/foreach}
                </select>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input name="status" class="switch" value="1" type="checkbox" lay-skin="switch" lay-text="开启|关闭" {if $alldata['field']['status']['default']==1}checked=""{/if}>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
<script>
    var parameter = '{$parameter|raw|default=""}';
</script>